Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bounds-checking bug in floatToRationalCast #2353

Merged
merged 2 commits into from
Sep 29, 2022

Conversation

kevinbackhouse
Copy link
Collaborator

Fixes: #2352

I reversed the order of the if-then-else cascade to get the bounds checking correct.

@codecov
Copy link

codecov bot commented Sep 19, 2022

Codecov Report

Merging #2353 (ca20c94) into main (250586e) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #2353      +/-   ##
==========================================
- Coverage   63.51%   63.51%   -0.01%     
==========================================
  Files         119      119              
  Lines       20624    20622       -2     
  Branches    10233    10232       -1     
==========================================
- Hits        13100    13098       -2     
  Misses       5395     5395              
  Partials     2129     2129              
Impacted Files Coverage Δ
src/types.cpp 94.44% <100.00%> (-0.04%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@kevinbackhouse kevinbackhouse added bug OSS-Fuzz Bug reported by https://google.github.io/oss-fuzz/ labels Sep 24, 2022
@neheb neheb merged commit a8a3534 into Exiv2:main Sep 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug OSS-Fuzz Bug reported by https://google.github.io/oss-fuzz/
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Undefined behavior in floatToRationalCast (again)
2 participants